FUNCTION

map.get_or_default

pure function get_or_default<R>(key: K, default: R): R

Get the value associated with the given key in this map.

Parameters

  • key — the key to look up
  • default — the default value (lazily evaluated) to return if the key is not found

Returns

the value associated with the given key in this map, or default if the key is not found

Since

0.11.0

© 2026 Chromia